package RLK_IMAGEIO;

public class Example_02 {
    public int getBitOffset(final Object input) throws IOException {
        ImageInputStream inputStream = ImageIO.createImageInputStream(input);
        try {
            int bitOffset = inputStream.getBitOffset();
            return bitOffset;
        } finally {
            inputStream.close();
        }
    }
}
